<%@ page contentType="text/html; charset=utf-8" language="java" pageEncoding="utf-8" %>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>开发文档</title>
		<link type="text/css" rel="stylesheet" href="../../../css/pages/xlink/global.css">
		<link type="text/css" rel="stylesheet" href="../../../css/pages/xlink/developer.css">
	</head>
	<body>
		<div id="top">
			<div id="top_logo"><span>Xlink</span></div>
			<div id="top_right">
				<div id="top_right_ul1"> 
				    <ul>
				    	<li><a href="contact.html">联系我们</a></li>
				    	<li><a href="#">工作机会</a></li>
				    	<li><a href="mydevice.html">用户中心</a></li>
				    </ul>
				</div>
				<div id="top_right_ul2">
					<ul>
					<li><a hre="index.html">首页</a></li>
					<li><a hre="developer.html">开发者</a></li>
					<li><a hre="#">搜索</a></li>
					<li><a hre="#">社区</a></li>
					<li><a hre="#">博客</a></li>
					<li><a hre="contact.html">联系我们</a></li>
					</ul>
				</div>
			</div>
		</div>

		<div id="banner" class="short bg2">
			<div class="inset">
				<h1>API文档</h1>
				<p>API Documents</p>
			</div>
		</div>

		<div id="first">
			<div id="left">
				<h1>导航中心</h1>
				<ul>
					<li><a href="#">快速开始</a></li>
					<li><a href="#">开发例程</a></li>
					<li><a href="#">案例分析</a></li>
					<li><a href="#">移动客户端</a></li>
					<li><a href="#">API文档</a></li>
					<li><a href="#">使用条款</a></li>
				</ul>
			</div>
			<div id="right">
				
				<div id="developer_main" class="devdoc">
					<h1>API文档 <i>(版本1.0，版本 <a href="#">v1.1</a> 测试中)</i></h1>
							<h2>设备 Devices</h2>
					<p class="info">一个device表示一组传感器的集合.</p>
					<table id="table_device" class="common">
						<thead>
							<tr><th colspan="3">设备 Devices</th></tr>
						</thead>
						<tbody>
											<tr>
								<td><a href="#">/v1.0/devices</a></td>
								<td width="320">创建设备</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
											<tr>
								<td><a href="#">/v1.0/device/&lt;device_id&gt;</a></td>
								<td width="320">编辑设备</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
											<tr>
								<td><a href="#">/v1.0/devices</a></td>
								<td width="320">罗列设备</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
											<tr>
								<td><a href="#">/v1.0/device/&lt;device_id&gt;</a></td>
								<td width="320">查看设备</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
											<tr>
								<td><a href="#">/v1.0/device/&lt;device_id&gt;</a></td>
								<td width="320">删除设备</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
										</tbody>
					</table>
							<h2>传感器 Sensors</h2>
					<p class="info"> 传感器完成采集数据的功能, 一个设备支持多个传感器. </p>
					<table id="table_device" class="common">
						<thead>
							<tr><th colspan="3">传感器 Sensors</th></tr>
						</thead>
						<tbody>
											<tr>
								<td><a href="#">/v1.0/sensor/&lt;device_id&gt;</a></td>
								<td width="320">创建传感器</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
											<tr>
								<td><a href="#">/v1.0/sensor/&lt;device_id&gt;/&lt;sensor_id&gt;</a></td>
								<td width="320">编辑传感器</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
											<tr>
								<td><a href="#">/v1.0/sensor/&lt;device_id&gt;</a></td>
								<td width="320">罗列传感器</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
											<tr>
								<td><a href="#">/v1.0/sensor/&lt;device_id&gt;/&lt;sensor_id&gt;</a></td>
								<td width="320">查看传感器</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
											<tr>
								<td><a href="#">/v1.0/sensor/&lt;device_id&gt;/&lt;sensor_id&gt;</a></td>
								<td width="320">删除传感器</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
										</tbody>
					</table>
							<h2>数据点 Datapoints</h2>
					<p class="info">一个datapoint是由key和value组成的键值对.</p>
					<table id="table_device" class="common">
						<thead>
							<tr><th colspan="3">数据点 Datapoints</th></tr>
						</thead>
						<tbody>
											<tr>
								<td><a href="#">/v1.0/datapoint/&lt;device_id&gt;/&lt;sensor_id&gt;/</a></td>
								<td width="320">创建数据点</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
											<tr>
								<td><a href="#">/v1.0/datapoint/&lt;device_id&gt;/&lt;sensor_id&gt;/&lt;key&gt;</a></td>
								<td width="320">编辑数据点</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
											<tr>
								<td><a href="#">/v1.0/datapoint/&lt;device_id&gt;/&lt;sensor_id&gt;/&lt;key&gt;</a></td>
								<td width="320">查看数据点</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
											<tr>
								<td><a href="#">/v1.0/datapoint/&lt;device_id&gt;/&lt;sensor_id&gt;/&lt;key&gt;</a></td>
								<td width="320">删除数据点</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
										</tbody>
					</table>
							<h2>图像数据</h2>
					<p class="info"> 图像信息是由key和value组成的键值对, 图像内容则是二进制图像文件.</p>
					<table id="table_device" class="common">
						<thead>
							<tr><th colspan="3">图像数据</th></tr>
						</thead>
						<tbody>
											<tr>
								<td><a href="#">/v1.0/photos/&lt;device_id&gt;/&lt;sensor_id&gt;</a></td>
								<td width="320">上传图像</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
											<tr>
								<td><a href="#">/v1.0/photos/&lt;device_id&gt;/&lt;sensor_id&gt;/info/&lt;key&gt;</a></td>
								<td width="320">获取图像(信息)</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
											<tr>
								<td><a href="#">/v1.0/photos/&lt;device_id&gt;/&lt;sensor_id&gt;/content/&lt;key&gt;</a></td>
								<td width="320">获取图像(内容)</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
										</tbody>
					</table>
							<h2>历史数据</h2>
					<p class="info"></p>
					<table id="table_device" class="common">
						<thead>
							<tr><th colspan="3">历史数据</th></tr>
						</thead>
						<tbody>
											<tr>
								<td><a href="#">/v1.0/datapoint/&lt;device_id&gt;/&lt;sensor_id&gt;.json?start=&lt;timestamp&gt;&amp;end=&lt;timestamp&gt;&amp;interval=&lt;interval&gt;&amp;page=&lt;page&gt;</a></td>
								<td width="320">历史数据</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
										</tbody>
					</table>
							
							<h2>API Key</h2>
					<p class="info"></p>
					<table id="table_device" class="common">
						<thead>
							<tr><th colspan="3">API Key</th></tr>
						</thead>
						<tbody>
											<tr>
								<td><a href="#">/v1.0/user/apikey?username=&lt;username&gt;&amp;pass=&lt;pass&gt;</a></td>
								<td width="320">获取API Key</td>
								<td width="80"><a href="#">在线测试</a></td>
							</tr>
										</tbody>
					</table>
						</div>

			</div>
		</div>
		<div id="bottom">@Xlink 版权所有</div>
	</body>
</html>
